package de.game.objects;

import java.io.Serializable;


public class Player implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6412093827513718079L;
	private String name;
	private int id;
	private static int number = 0;
	private int[] currentLocation = new int[2];
	

	public Player(int x, int y){
		currentLocation = new int[]{x, y};
		this.id = number;
		number++;
	}

		
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getId() {
		return id;
	}

	public void setId(int id){
		this.id = id;
	}

	public int[] getCurrentLocation() {
		return currentLocation;
	}


	public static int getNumber() {
		return number;
	}


	public static void setNumber(int number) {
		Player.number = number;
	}


	public void setCurrentLocation(int[] currentLocation) {
		this.currentLocation = currentLocation;
	}


	
}
